* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  margin-bottom: 30px;
}

.header h1 {
  font-size: 2.5em;
  color: #333;
  margin-bottom: 10px;
}

.header p {
  color: #666;
  font-size: 1.1em;
}

.usage-tips {
  margin-top: 10px;
}

.usage-tips small {
  color: #888;
  font-size: 0.9em;
  background: rgba(102, 126, 234, 0.1);
  padding: 5px 10px;
  border-radius: 12px;
  display: inline-block;
}

.workspace {
  display: flex;
  gap: 30px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
}

.control-panel {
  width: 350px;
  padding: 30px;
  background: #f8f9fa;
  border-right: 1px solid #e9ecef;
}

.section {
  margin-bottom: 30px;
}

.section h3 {
  color: #495057;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #495057;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: 10px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
}

.form-group input[type="color"] {
  width: 60px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.form-group input[type="range"] {
  width: 70%;
  margin-right: 10px;
}

#fontSizeValue {
  color: #667eea;
  font-weight: 500;
}

.radio-group {
  display: flex;
  gap: 15px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: normal;
}

.download-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.preview-area {
  flex: 1;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-container {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

canvas {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .workspace {
    flex-direction: column;
  }
  
  .control-panel {
    width: 100%;
  }
  
  .preview-area {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .header h1 {
    font-size: 2em;
  }
  
  .control-panel {
    padding: 20px;
  }
} 